*{
    margin:0;
    padding: 0;
}

body{
    perspective: 1300px;
}

.box{
    position: relative;
    top: 0;
    left: 0;
    width: 500px;
    height: 400px;
    margin: 300px auto;
    transform-style: preserve-3d;
    animation: run 15s linear infinite;
}


.box div{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    

}

.box div:nth-child(1){
    background: url('../images/1.jpg') no-repeat;
    background-size: 100%;
}

.box div:nth-child(2){
    background: url('../images/2.jpg') no-repeat;
    transform: translateZ(500px);
    background-size: 100%;
}

.box div:nth-child(3){
    background: url('../images/3.jpg') no-repeat;
    transform: rotateY(60deg) translate3d(0,0,500px);
    background-size: 100%;

}

.box div:nth-child(4){
    background: url('../images/4.jpg') no-repeat;
    transform: rotateY(120deg) translate3d(0,0,500px);
    background-size: 100%;

}.box div:nth-child(5){
    background: url('../images/5.jpg') no-repeat;
    transform: rotateY(180deg) translate3d(0,0,500px);
    background-size: 100%;

}.box div:nth-child(6){
    background: url('../images/6.jpg') no-repeat;
    transform: rotateY(240deg) translate3d(0,0,500px);
    background-size: 100%;

}.box div:nth-child(7){
    background: url('../images/7.jpg') no-repeat;
    transform: rotateY(300deg) translate3d(0,0,500px);
    background-size: 100%;

}

@keyframes run {
    0%{
        transform: rotateY(0deg);
    }
    100%{
        transform: rotateY(360deg);
    }
}